.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.681);
  z-index: 9999;
  font-family: iranSansX !important;
  max-width: 100vw !important;
  overflow-y: auto;
}

.popup-content {
  position: absolute;
  overflow: hidden;
  overflow-y: scroll;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #37302b;
  background: url("../Template Images/Backgrounds/ghahve-popup-bg.png")
    no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  animation: popup-fade 0.9s ease-in-out;
}

#ghahve-content-v2 {
  background: url("../Template Images/Backgrounds/ghahve-popup-bg-v2.png")
    no-repeat;
  background-size: cover !important;
  background-color: #b6826d !important;
}
#ghahve-content-v3 {
  background: url("../Template Images/Backgrounds/ghahve-popup-bg-v3.png")
    no-repeat;
  background-size: cover !important;
  background-color: #d1dbdd !important;
}

.popup_header {
  padding: 16px;
}
#closeBtn {
  width: 50px;
  padding: 10px;
  background-color: #27201e66;
  border-radius: 100%;
}
.popup_header img {
  width: 100%;
  height: 100%;
  position: relative;
  top: 4px;
}
.popup_titles {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  top: -3vh;
}
.popup_titles h2 {
  color: #fff;
  font-weight: 600;
  font: 1.4rem;
}
.popup_titles h3 {
  color: #fff;
  font-weight: 400;
  font: 1rem;
}

.popup_price {
  background-color: #1a100a;
  border-radius: 0 8px 8px 0;
  padding: 24px 16px;
  position: absolute;
  left: 0;
  top: 22vh;
  color: #fff;
  min-width: 100.5px;
  min-height: 84px;
}
.popup_price span::after {
  content: "تومان";
  margin-right: 5px;
  font-size: 0.925rem;
  font-weight: 400;
}
.popup_price span {
  font-size: 1.425rem;
  font-weight: 400;
  font-family: dana !important;
}
#ghahve-price-v3 span {
  font-family: Abar !important;
}
.active {
  box-shadow: inset 0px 0px 5px 1px #1f1f1f;
}

.popup_sizes {
  position: absolute;
  top: 28vh;
  width: 110px;
  border-radius: 8px 0 0 8px;

  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  overflow: hidden;
}
.popup_sizes div {
  width: 100%;
  height: 79px;
  font-size: 1rem;
  font-weight: 400;

  display: flex;
  align-items: center;
  justify-content: center;
}
.popup_sizes div:nth-child(1) {
  background-color: #eac7b3;
}
.popup_sizes div:nth-child(2) {
  background-color: #86634f;
}
.popup_sizes div:nth-child(3) {
  background-color: #583d2f;
}
.popup_sizes div:nth-child(4) {
  background-color: #1a100a;
  color: #eac7b3;
}

.popup_images {
  position: absolute;
  left: 6px;
  top: 37vh;
  width: 180px;
  height: 290px;
}
.popup-images-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.popup-images-swiper .swiper-slide {
  height: 80%;
}
.popup-images-swiper {
  height: 100%;
}

.popup-images-swiper .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 4px;
  background-color: #cecece;
  transition: 0.5s;
  position: relative;
  top: -40px;
}

.popup-images-swiper .swiper-pagination-bullet-active {
  background-color: #9d6849;
  width: 26px;
}

#ghahve-pagination-v2 .swiper-pagination-bullet-active {
  background-color: #a57d6c;
}
#ghahve-pagination-v3 .swiper-pagination-bullet-active {
  background-color: #52696e;
}
.popup_details {
  margin-top: 47vh;

  padding: 16px;
  color: #fff;
  font-size: 0.925rem;
  font-weight: 400;

  overflow: hidden;
}

.popup_video {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ffffff66;
  color: #302924;
  padding: 8px 16px;
  border-radius: 12px;
  width: fit-content;
  margin-right: 16px;
  margin-bottom: 20px;
}

.videoHolder {
  z-index: 20;
}
.videoHolder video {
  width: 100%;
  height: 200px;
  margin-top: 20px;
}

@keyframes popup-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, 100%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

#change-data {
  display: none;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
  position: fixed;
  top: 40%;
  right: 33%;
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 7px;
  width: 30%;
}
div.modal-content div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 110px;
}
div.modal-content div p {
  font-family: dana;
  text-align: center;
}
#ghahve-body-v3 div.modal-content div p {
  font-family: Abar;
}

@media screen and (max-width: 314px) {
  .modal-content {
    right: 4%;
    width: 92%;
  }
}
@media screen and (max-width: 370px) and (min-width: 315px) {
  .modal-content {
    right: 18%;
    width: 65%;
  }
}
@media screen and (max-width: 531px) and (min-width: 371px) {
  .modal-content {
    right: 22.5%;
    width: 55%;
  }
}
@media screen and (max-width: 1024px) and (min-width: 951px) {
  .modal-content {
    right: 33%;
    width: 34%;
  }
}
